From e7d6648f4618ec9fb44aa218d6965e1d613718c2 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 20 Apr 2018 17:04:36 +0200 Subject: [PATCH] gdk: Remove gdk_gl_context_get_damage() Remove it only form public API, because we still use the vfunc to figure out the damage area in begin_frame(). --- docs/reference/gdk/gdk4-sections.txt | 1 - gdk/gdkglcontext.c | 20 +------------------- gdk/gdkglcontext.h | 2 -- 3 files changed, 1 insertion(+), 22 deletions(-) diff --git a/docs/reference/gdk/gdk4-sections.txt b/docs/reference/gdk/gdk4-sections.txt index c59224ac15..ebe7c37850 100644 --- a/docs/reference/gdk/gdk4-sections.txt +++ b/docs/reference/gdk/gdk4-sections.txt @@ -1139,7 +1139,6 @@ gdk_gl_context_is_legacy GdkGLError gdk_gl_context_realize -gdk_gl_context_get_damage gdk_gl_context_make_current gdk_gl_context_get_current gdk_gl_context_clear_current diff --git a/gdk/gdkglcontext.c b/gdk/gdkglcontext.c index 07f25aadfb..d60f8e2b4c 100644 --- a/gdk/gdkglcontext.c +++ b/gdk/gdkglcontext.c @@ -305,7 +305,7 @@ gdk_gl_context_real_begin_frame (GdkDrawContext *draw_context, return; } - damage = gdk_gl_context_get_damage (context); + damage = GDK_GL_CONTEXT_GET_CLASS (context)->get_damage (context); cairo_region_union (region, damage); cairo_region_destroy (damage); @@ -396,24 +396,6 @@ gdk_gl_context_init (GdkGLContext *self) priv->use_es = -1; } -/** - * gdk_gl_context_get_damage: - * @context: a #GdkGLContext - * - * Returns the part of the backbuffer that is known to be damaged and would - * need to be redrawn. This is the area that needs to be respected in addition - * to areas invalidated by GTK or the windowing system itself. - * - * Returns: The damage to the backbuffer - **/ -cairo_region_t * -gdk_gl_context_get_damage (GdkGLContext *context) -{ - g_return_val_if_fail (GDK_IS_GL_CONTEXT (context), cairo_region_create ()); - - return GDK_GL_CONTEXT_GET_CLASS (context)->get_damage (context); -} - GdkGLContextPaintData * gdk_gl_context_get_paint_data (GdkGLContext *context) { diff --git a/gdk/gdkglcontext.h b/gdk/gdkglcontext.h index 45d4f3d58a..83585fbe25 100644 --- a/gdk/gdkglcontext.h +++ b/gdk/gdkglcontext.h @@ -82,8 +82,6 @@ gboolean gdk_gl_context_get_use_es (GdkGLContext * GDK_AVAILABLE_IN_ALL gboolean gdk_gl_context_realize (GdkGLContext *context, GError **error); -GDK_AVAILABLE_IN_ALL -cairo_region_t * gdk_gl_context_get_damage (GdkGLContext *context); GDK_AVAILABLE_IN_ALL void gdk_gl_context_make_current (GdkGLContext *context); -- 2.30.2